package com.javacv.plus.extensions.video.steps;

import com.javacv.plus.core.processor.ProcessorContext;
import com.javacv.plus.core.processor.ProcessorStep;
import com.javacv.plus.extensions.video.VideoProcessor;
import com.javacv.plus.extensions.video.VideoResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class VideoWatermarkStep implements ProcessorStep<VideoProcessor, VideoResult> {
    
    private final String watermarkPath;
    private final int x, y;
    
    public VideoWatermarkStep(String watermarkPath, int x, int y) {
        this.watermarkPath = watermarkPath;
        this.x = x;
        this.y = y;
    }
    
    @Override
    public VideoResult execute(VideoProcessor processor, ProcessorContext context) throws Exception {
        log.info("添加视频水印: {} 位置: ({}, {})", watermarkPath, x, y);
        return null;
    }
    
    @Override
    public String getStepName() {
        return "VideoWatermark";
    }
} 